package list;

public class SeqListTest1{
	public static void main (String args[]) throws Exception{
		SeqList seqList = new SeqList(100);
		int n = 10;
		try{
			for(int i = 0;i < n;i++){
				seqList.insert(i,new Integer(i+1));				
			}
			seqList.insert(9,new Integer(22));
			
			for (int j = 0; j < seqList.size;j++){
				System.out.println(seqList.getData(j)+"");
			}	
			
			seqList.delete(4);
			
			for (int j = 0; j < seqList.size;j++){
				System.out.println(seqList.getData(j)+" ");
			}
		
		}catch(Exception e){
			e.printStackTrace();
		}
		
	}
}
